package com.kede.ienum.order;

import lombok.AllArgsConstructor;
import lombok.Getter;

/***
 ** @Author:Pr.li
 ** @Description: 认证类型
 ** @Date: create in 2023/6/1 16:27
 ***/
@Getter
@AllArgsConstructor
public enum CertiTypeEnum {
    STORE(1,"门店"),
    QUDAI(2,"区代"),
    SHIDAI(3,"市代");


    private Integer code;

    private String value;


    public static CertiTypeEnum parse(Integer code) {
        for (CertiTypeEnum value : values()) {
            if (value.code.equals(code)) {
                return value;
            }
        }
        return null;
    }


}
